
*******************************************************************************************
*******************************************************************************************
******************** Reclassification Risk in the Small Group Health Insurance Market
******************* by Sebastian Fleitas, Gautam Gowrisankaran and Anthony Lo Sasso 
*******************************************************************************************
*******************************************************************************************
*******************************************************************************************
******************** Table 2
*******************************************************************************************
*******************************************************************************************
*******************************************************************************************

cd "/Users/sebastianfleitas/Dropbox/ReclassificationRisk"
use database_individual_level.dta, replace 

*********************************************************************************************
reg paid_sum laggedscore marketdum* if year==2014 &  firmstays==1, vce(cluster customer_number)
eststo mod2 
reg allowed_sum laggedscore marketdum* if year==2014 & firmstays==1 , vce(cluster customer_number)
eststo mod3
reg outpocket laggedscore marketdum* if year==2014 &  firmstays==1 , vce(cluster customer_number)
eststo mod4 
****************************************************************************************************************** fragment
*********TABLE 
esttab mod2 mod3 mod4 using Restat_Table5_year2014_Passthrough_claims_risk.tex , replace label  se(%5.0fc) nonotes nonumbers stats(N, fmt(%12.0fc)) compress b(%12.0fc) nogaps  ///
		title(Estimates Scores to Claims Pass-through Regressions) mtitles("I" "II" "III") ///
		star(* 0.10 ** 0.05 *** 0.01)  ///
		keep( laggedscore ) /// 
		prefoot( \hline "Dep. Var. & Paid & Allowed & OPP" \\ /// 
		"Market FE & Yes & Yes & Yes" \\ ///
		"Sample & 2013 & 2013 & 2013 "\\ \hline) 
eststo clear
*********************************************************************************************
*********************************************************************************************
